package org.jeecg.modules.order.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date:   2024-05-19
 * @Version: V1.0
 */
public interface OrderMapper extends BaseMapper<Order> {

    List<Map> topnUser();
    List<Map> topnSeat();

    List<Map> orderHours(@Param("reserveType") String reserveType);

    List<Map> orderAmtByPayType(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    Long voucherAmt(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    List backInfo(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    List<Map> findOrderAmt(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    List<Map> findUserCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    Long findTodayUserCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
}
